define(['jquery', 'bootstrap', 'frontend'], function ($, undefined, Frontend) {
    var Controller = {
        index: function () {
            $(document).on("click", ".attr", function () {
				var type = $(this).data('type');
				var value = $(this).data('value');
				$('.attr[data-type='+type+']').removeClass('active');
				$(this).addClass('active');
                $('input[name='+type+']').val(value);
            });
			$(document).on('click', '.nav-tabs li', function(){
				$('.attr[data-type=goods_id]').removeClass('active');
				$('input[name=goods_id]').val('')
			})
        },
        viplog: function () {

        }
    };
    return Controller;
});
